import { asyncLoadComponent } from '@/routes/asyncLoadComponent'
import {
    UserAddOutlined,
    AuditOutlined,
    ReconciliationOutlined,
    ApartmentOutlined,
} from '@ant-design/icons';
let route = {
    path: '/logCenter',
    exact: false,
    auth: true,
    component: asyncLoadComponent(() => import('@/pages/logCenter')),
    meta: {
        title: '日志中心',
        hideInMenu: true,
        icon: <ReconciliationOutlined />
    },
    routes: [{
        path: '/logCenter/user',
        exact: true,
        auth: true,
        component: asyncLoadComponent(() => import('@/pages/logCenter/user')),
        meta: {
            title: '用户日志',
            icon: <AuditOutlined />
        },
    },
    {
        path: '/logCenter/goods',
        exact: true,
        component: asyncLoadComponent(() => import('@/pages/logCenter/goods')),
        auth: true,
        meta: {
            title: '商品日志',
            icon: <UserAddOutlined />
        },
    },
    {
        path: '/logCenter/order',
        exact: true,
        auth: true,
        component: asyncLoadComponent(() => import('@/pages/logCenter/order')),
        meta: {
            title: '订单日志',
            icon: <ApartmentOutlined />
        },
    }]
}
export default route